Handling Errors
This example demonstrates how to handle errors using JavaScript’s try and catch statements.
try
{
TerraBuilder.OpenProject("C:\\DoesNotExist.tbp");
}
catch(error)
{
alert(error.message);
}
This example demonstrates how to handle errors using JavaScript’s try and catch statements.
try
{
TerraBuilder.OpenProject("C:\\DoesNotExist.tbp");
}
catch(error)
{
alert(error.message);
}